package com.heather.exam.service.impl;

import com.heather.exam.mapper.RegisterMapper;
import com.heather.exam.pojo.table.User;
import com.heather.exam.service.RegisterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RegisterServiceImpl implements RegisterService {

    @Autowired
    RegisterMapper registerMapper;

    @Override
    public Integer checking(String email) {
        return registerMapper.selectOneByEmail(email);
    }

    @Override
    public Integer visitorRegister(User user) {
        return registerMapper.insert(user);
    }
}
